Incorporated many changes from 4.8.0-0ubuntu2
authorIan Jackson <ian.jackson@citrix.com>
Thu, 27 Oct 2016 10:56:11 +0000 (11:56 +0100)
committerIan Jackson <ian.jackson@citrix.com>
Fri, 28 Oct 2016 13:53:40 +0000 (14:53 +0100)
  - libxen-dev is M-A: same
  - Work around grep bug http://bugs.launchpad.net/bugs/1547466
  - debian/xen-hypervisor-4.6.xen.cfg:
    Additional config file to simplify grub configuration.
  - Use new library/abiname scheme.
  - Document what xl and xm are in default.xen
  - Add libvirtd dependency to xendomains init script
  (Thanks to Stefan Bader and others.)

Signed-off-by: Ian Jackson <ian.jackson@citrix.com>
debian/changelog
debian/control
debian/libxen-dev.install
debian/rules.real
debian/tree/xen-utils-common/usr/share/xen-utils-common/default.xen
debian/xen-hypervisor-4.8.xen.cfg [new file with mode: 0644]
debian/xen-utils-common.xendomains.init

index d38949707c05416cc1c46bcf3eacf7d50a1bb39d..90d2d1834e3d0c438e207e9e65678194162d099f 100644 (file)
@@ -1,6 +1,15 @@
 xen (4.8.0~rc3-0~exp) UNRELEASED; urgency=medium
 
   * New upstream version, Xen 4.8.0 RC3.
+  * Incorporated many changes from 4.8.0-0ubuntu2
+    - libxen-dev is M-A: same
+    - Work around grep bug http://bugs.launchpad.net/bugs/1547466
+    - debian/xen-hypervisor-4.6.xen.cfg:
+      Additional config file to simplify grub configuration.
+    - Use new library/abiname scheme.
+    - Document what xl and xm are in default.xen
+    - Add libvirtd dependency to xendomains init script
+    (Thanks to Stefan Bader and others.)
 
  -- Ian Jackson <ijackson@chiark.greenend.org.uk>  Mon, 24 Oct 2016 17:31:27 +0100
 
index ab53afdde786b9cb3ccdf3c93df75fdf949ef810..fddf165fa58b4cfe84926e6d5aad0d0e5914c94c 100644 (file)
@@ -26,6 +26,7 @@ Multi-Arch: same
 Package: libxen-dev
 Architecture: amd64 arm64 armhf i386
 Section: libdevel
+Multi-Arch: same
 Depends: libxen-4.8 (= ${binary:Version}), libxenstore3.0 (= ${binary:Version}), ${misc:Depends}
 Description: Public headers and libs for Xen
  This package contains the public headers and static libraries for Xen.
index 96ffc2539832e2ca65e23ba5bd0de04d35a86cf6..df5b859e4d9fb4cd0eb0d2e188642fad3d3394c4 100644 (file)
@@ -8,6 +8,16 @@ usr/lib/*/libxenstore.a
 usr/lib/*/libxenstore.so
 usr/lib/*/libxlutil.a
 usr/lib/*/libxlutil.so
+usr/lib/*/libxencall.a
+usr/lib/*/libxencall.so
+usr/lib/*/libxenevtchn.a
+usr/lib/*/libxenevtchn.so
+usr/lib/*/libxenforeignmemory.a
+usr/lib/*/libxenforeignmemory.so
+usr/lib/*/libxengnttab.a
+usr/lib/*/libxengnttab.so
+usr/lib/*/libxentoollog.a
+usr/lib/*/libxentoollog.so
 usr/include/_libxl*.h
 usr/include/libxl*.h
 usr/include/xenctrl.h
@@ -15,5 +25,16 @@ usr/include/xenguest.h
 usr/include/xenstore*.h
 usr/include/xenstore-compat/xs* usr/include
 usr/include/xentoollog.h
-usr/include/xenctrlosdep.h
 usr/include/xen
+usr/lib/*/pkgconfig/*.pc
+# New headers in xen-4.8
+#usr/include/fsimage_grub.h
+#usr/include/fsimage.h
+#usr/include/fsimage_plugin.h
+#usr/include/libxenvchan.h
+usr/include/xencall.h
+usr/include/xenctrl_compat.h
+usr/include/xenevtchn.h
+usr/include/xenforeignmemory.h
+usr/include/xengnttab.h
+usr/include/xenstat.h
index 9fcfb7afc6f5ed1247dc0969c69bc4ea70217f5a..bda089232b7948676e12babdc1d9e1fa62c7fbea 100644 (file)
@@ -81,11 +81,16 @@ $(STAMPS_DIR)/build-docs: $(STAMPS_DIR)/setup-docs
        +$(MAKE_CLEAN) -C $(DIR)/docs
        touch $@
 
+# Adding LANG=C.UTF-8 to the build environment to work around a bug in grep
+# which causes it to switch into binary mode in the middle of a file.
+# (see http://bugs.launchpad.net/bugs/1547466)
+
 $(STAMPS_DIR)/build-hypervisor_$(ARCH)_$(FLAVOUR): DIR=$(BUILD_DIR)/build-hypervisor_$(ARCH)_$(FLAVOUR)
 $(STAMPS_DIR)/build-hypervisor_$(ARCH)_$(FLAVOUR): $(STAMPS_DIR)/setup-hypervisor_$(ARCH)_$(FLAVOUR)
        +$(MAKE_CLEAN) -C $(DIR)/xen \
                XEN_COMPILE_ARCH=$(XEN_ARCH) \
-               XEN_TARGET_ARCH=$(XEN_ARCH)
+               XEN_TARGET_ARCH=$(XEN_ARCH) \
+               LANG=C.UTF-8
        touch $@
 
 $(STAMPS_DIR)/build-utils_$(ARCH) \
@@ -97,7 +102,8 @@ $(STAMPS_DIR)/install-utils_$(ARCH): CONFIG = \
                APPEND_CPPFLAGS="$(CPPFLAGS)" \
                APPEND_LDFLAGS="$(LDFLAGS)" \
                OCAMLDESTDIR=$(CURDIR)/$(BUILD_DIR)/install-utils_$(ARCH)/$(OCAML_STDLIB_DIR) \
-               PYTHON=$(shell pyversions -r)
+               PYTHON=$(shell pyversions -r) \
+               LANG=C.UTF-8
 
 $(STAMPS_DIR)/build-utils_$(ARCH): DIR=$(BUILD_DIR)/build-utils_$(ARCH)
 $(STAMPS_DIR)/build-utils_$(ARCH): $(STAMPS_DIR)/setup-utils_$(ARCH)
@@ -153,6 +159,10 @@ install-hypervisor_$(ARCH)_$(FLAVOUR): $(STAMPS_DIR)/build-hypervisor_$(ARCH)_$(
        dh_testroot
        dh_prep
        dh_installdirs boot
+       # FIXME: Think of better solution (grub used for other arches?)
+       dh_installdirs etc/default/grub.d
+       install -D -m644 debian/xen-hypervisor-$(VERSION).xen.cfg \
+               debian/$(PACKAGE_NAME)/etc/default/grub.d/xen.cfg
        cp $(DIR)/xen/xen$(IMAGE_SUFFIX) debian/$(PACKAGE_NAME)/boot/xen-$(VERSION)-$(FLAVOUR)$(IMAGE_SUFFIX)
 ifeq ($(ARCH),amd64)
        cp $(DIR)/xen/xen.efi debian/$(PACKAGE_NAME)/boot/xen-$(VERSION)-$(FLAVOUR).efi
@@ -165,7 +175,7 @@ install-libxen_$(ARCH): $(STAMPS_DIR)/install-utils_$(ARCH) install-libxenstore_
        dh_testdir
        dh_testroot
        dh_prep
-       dh_install --sourcedir=$(DIR) usr/lib/*/lib*-$(VERSION).so
+       dh_install --sourcedir=$(DIR) usr/lib/*/lib*-$(VERSION).so*
        dh_strip
        dh_makeshlibs -V
        dh_shlibdeps
@@ -178,6 +188,8 @@ install-libxen-dev_$(ARCH): $(STAMPS_DIR)/install-utils_$(ARCH)
        dh_testdir
        dh_testroot
        dh_prep
+       # Move pkgconfig into a multiarch compliant place
+       mv $(DIR)/usr/share/pkgconfig $(DIR)/usr/lib/$(DEB_HOST_MULTIARCH)/
        dh_install --sourcedir=$(DIR)
        dh_strip
        dh_shlibdeps
index 65f5196cbdc31c6431e2f4ba94fa2323d54424fc..87a35f3a119196d96e75c04b49d6886958de799e 100644 (file)
@@ -2,6 +2,8 @@
 # ----------------------------
 
 # There exists several tool stacks to configure a Xen system.
-# …
+# xl: This is the new toolstack using libxenlight/libxl (default)
+# xm: Was the old toolstack (xend) which is no longer supported!
+#
 # Attention: You need to reboot after changing this!
 TOOLSTACK=
diff --git a/debian/xen-hypervisor-4.8.xen.cfg b/debian/xen-hypervisor-4.8.xen.cfg
new file mode 100644 (file)
index 0000000..b2d2f6e
--- /dev/null
@@ -0,0 +1,54 @@
+#
+# Uncomment the following variable and set to 0 or 1 to avoid warning.
+#
+#XEN_OVERRIDE_GRUB_DEFAULT=0
+
+echo "Including Xen overrides from /etc/default/grub.d/xen.cfg"
+
+#
+# When running update-grub with the Xen hypervisor installed, there are
+# some additional variables that can be used to pass options to the
+# hypervisor or the dom0 kernel.
+
+# The following two are used to generate arguments for the hypervisor:
+#
+#GRUB_CMDLINE_XEN_DEFAULT=""
+#GRUB_CMDLINE_XEN=""
+#
+# For example:
+#
+# dom0_mem=<size>[M]:max=<size>[M]
+#   Sets the amount of memory dom0 uses (max prevents balloning for more)
+# com[12]=<speed>,<data bits><parity><stopbits>
+#   Initialize a serial console from in the hypervisor (eg. 115200,8n1)
+#   Note that com1 would be ttyS0 in Linux.
+# console=<dev>[,<dev> ...]
+#   Redirects Xen hypervisor console (eg. com1,vga)
+
+#
+# The next two lines are used for creating kernel arguments for the dom0
+# kernel. This allows to have different options for the same kernel used
+# natively or as dom0 kernel.
+#
+#GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT"
+#GRUB_CMDLINE_LINUX_XEN_REPLACE="$GRUB_CMDLINE_LINUX"
+#
+# For example:
+#
+# earlyprintk=xenboot
+#   Allows to send early printk messages to the Xen hypervisor console
+# console=hvc0
+#   Redirects the Linux console to the hypervisor console
+
+#
+# Make booting into Xen the default if not changed above. Finding the
+# current string for it always has been a problem.
+#
+if [ "$XEN_OVERRIDE_GRUB_DEFAULT" = "" ]; then
+       echo "WARNING: GRUB_DEFAULT changed to boot into Xen by default!"
+       echo "         Edit /etc/default/grub.d/xen.cfg to avoid this warning."
+       XEN_OVERRIDE_GRUB_DEFAULT=1
+fi
+if [ "$XEN_OVERRIDE_GRUB_DEFAULT" = "1" ]; then
+       GRUB_DEFAULT="Debian GNU/Linux, with Xen hypervisor"
+fi
index 5fd5a5d46eb41750169f4bb9c28b118904e20e6d..e1164b21bb7b919c1a7c6a0cfd3ef119042f79c0 100644 (file)
@@ -5,8 +5,8 @@
 # Required-Stop:     $syslog $remote_fs xen
 # Should-Start:      drbd iscsi openvswitch-switch
 # Should-Stop:       drbd iscsi openvswitch-switch
-# X-Start-Before:    corosync heartbeat
-# X-Stop-After:      corosync heartbeat
+# X-Start-Before:    corosync heartbeat libvirtd
+# X-Stop-After:      corosync heartbeat libvirtd
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
 # Short-Description: Start/stop secondary xen domains